﻿@model TCM.Registration

@{
    ViewBag.Title = "Edit";
}


<h2>Edit</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    
    
    <table style="width: 99.9%">
        <tr>
            <td class="IndexBack">
                @Html.ActionLink(" ", "Index")</td>
            <td style="text-align: right">
                <span class="FormTitle">@Html.DisplayFor(model => model.Name)</span></td>
        </tr>
    </table>

    
    
    @Html.HiddenFor(model => model.RegistrationID)

    <fieldset>
        <legend>Registration</legend>
        <ol>


                        <li class="editor-field">
                @Html.LabelFor(model => model.StudentID, "Student")

                @Html.DropDownList("StudentID", String.Empty)

            </li>


            <li class="editor-field">
                @Html.LabelFor(model => model.SubjectID, "Course")

                @Html.DropDownList("SubjectID", String.Empty)

            </li>
           



            <p>
                <input type="submit" value="Save" />
            </p>
        </ol>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
